home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / ewl / ewl_statusbar.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  2KB  |  65 lines

  1. #ifndef __EWL_BAR_H__
  2. #define __EWL_BAR_H__
  3.  
  4. /**
  5.  * @file ewl_bar.h
  6.  * @defgroup Ewl_Statusbar Bar: A status bar widget
  7.  * @brief Defines a class for displaying status bars
  8.  *
  9.  * @{
  10.  */
  11.  
  12. /**
  13.  * @themekey /statusbar/file
  14.  * @themekey /statusbar/group
  15.  */
  16.  
  17. /**
  18.  */
  19. typedef struct Ewl_Statusbar Ewl_Statusbar;
  20.  
  21. /**
  22.  * @def EWL_STATUSBAR(statusbar)
  23.  * Typecasts a pointer to a Ewl_Statusbar pointer
  24.  */
  25. #define EWL_STATUSBAR(statusbar) ((Ewl_Statusbar *) statusbar)
  26.  
  27. /**
  28.  * @struct Ewl_Statusbar
  29.  * Inherits from the Ewl_Box class and extends it to provide for
  30.  * a simple status bar
  31.  */
  32. struct Ewl_Statusbar
  33. {
  34.     Ewl_Box             outer_box;    /**< Inherit from Ewl_Box */
  35.     Ewl_Widget        *left;        /**< The left container **/
  36.     Ewl_Widget        *status;    /**< The status container */
  37.     Ewl_Widget        *right;        /**< The right container */
  38.     Ecore_List        *stack;        /**< The stack of status' */
  39.     Ewl_Widget        *current;    /**< The currently displayed status */
  40. };
  41.  
  42. Ewl_Widget    *ewl_statusbar_new(void);
  43. int         ewl_statusbar_init(Ewl_Statusbar *sb);
  44.  
  45. void         ewl_statusbar_left_hide(Ewl_Statusbar *sb);
  46. void         ewl_statusbar_left_show(Ewl_Statusbar *sb);
  47. void         ewl_statusbar_right_hide(Ewl_Statusbar *sb);
  48. void         ewl_statusbar_right_show(Ewl_Statusbar *sb);
  49.  
  50. void         ewl_statusbar_active_set(Ewl_Statusbar *sb, Ewl_Position pos);
  51. void         ewl_statusbar_left_append(Ewl_Statusbar *sb, Ewl_Widget *w);
  52. void         ewl_statusbar_left_prepend(Ewl_Statusbar *sb, Ewl_Widget *w);
  53. void         ewl_statusbar_right_append(Ewl_Statusbar *sb, Ewl_Widget *w);
  54. void         ewl_statusbar_right_prepend(Ewl_Statusbar *sb, Ewl_Widget *w);
  55.  
  56. void         ewl_statusbar_push(Ewl_Statusbar *sb, char *txt);
  57. void         ewl_statusbar_pop(Ewl_Statusbar *sb);
  58.  
  59. /**
  60.  * @}
  61.  */
  62.  
  63. #endif
  64.  
  65.